<?php
// *** Tangra (Application Framework and Tools for PHP)
// $Id$
//

require_once(TANGRA_MAIN_DIR.'web_site/session_vars_manager.class.php');


require_once($WSC->get_site_inc_dir().'modules/web_site_vanilla/vanilla_web_page.class.php');
require_once($WSC->get_site_inc_dir().'modules/web_site_strawberry/strawberry_web_page_view.class.php');


class Strawberry_Web_Page extends Vanilla_Web_Page {
	public function create_view($name = 'default') {
		$ret = new Strawberry_Web_Page_View($this, $name);

		return $ret;
	}


	/**
	 * Returns current Session Vars_Manager
	 *
	 * @return Session_Vars_Manager
	 */
	public function get_svm() {
		$context = $this->get__context();

		$svm_var_name = Session_Vars_Manager::get_svm_var_name();
		$svm = $context->get_from_session($svm_var_name);

		return $svm;
	}
}

